import { stringify } from 'qs';
import request from '../utils/request';

export async function findProjectDict(params) {
  return request('/projectDict/getAllProjects', {
    method: 'GET',
  });
}

export async function findGameProject(gameCode) {
  return request('/gameProject/getPrjectByGameCode/' + gameCode, {
    method: 'GET',
  });
}

export async function addGameProject(params) {
  return request('/gameProject/', {
    method: 'POST',
    body: params,
  });
}

export async function removeGameProject(params) {
  return request(`/gameProject/removeGameProject/${params.gameCode}/${params.projectCode}`, {
    method: 'DELETE',
  });
}


